package labox.innovation.gameserver.network.clientpackets;

import labox.innovation.gameserver.model.actor.instance.FuzePcInstance;

/**
 * 客户端请求删除快捷方式
 *
 * @version $Revision: 1.3.4.2 $ $Date: 2005/03/27 15:29:30 $
 */
public final class RequestShortCutDel extends L2GameClientPacket {

	private static final String _C__35_REQUESTSHORTCUTDEL = "[C] 35 RequestShortCutDel";

	private int _slot;

	@Override
	protected void readImpl() {
		_slot = readByte();
	}

	@Override
	protected void runImpl() {
		FuzePcInstance activeChar = getClient().getActiveChar();
		if (activeChar == null)
			return;
		activeChar.deleteShortCut(_slot,false);
	}

	/* (non-Javadoc)
	 * @see labox.innovation.gameserver.clientpackets.ClientBasePacket#getType()
	 */
	@Override
	public String getType() {
		return _C__35_REQUESTSHORTCUTDEL;
	}
}
